export class SearchResultDto {
  hash: string;

  title: string;

  size: string;

  category: string;

  create_time: number | undefined;

  added_time: number;

  constructor(
    hash: string,
    title: string,
    size: string,
    category: string,
    create_time: number | undefined,
    added_time: number,
  ) {
    this.hash = hash;
    this.title = title;
    this.size = size;
    this.category = category;
    this.create_time = create_time;
    this.added_time = added_time;
  }
}

export class PaginationDto {
  total: number;

  data: SearchResultDto[];

  constructor(data: SearchResultDto[], total: number) {
    this.data = data;
    this.total = total;
  }
}
